# 通过 try  except处理异常

try:
    text = input("enter something>>>")
    print(text)
except EOFError:
    print("eof error")
except KeyboardInterrupt:
    print("cancel")
# else:
# print(text)
